home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / txtsvc / nsIInlineSpellChecker.h next >
C/C++ Source or Header  |  2006-05-08  |  11KB  |  229 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIInlineSpellChecker.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIInlineSpellChecker_h__
  6. #define __gen_nsIInlineSpellChecker_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_domstubs_h__
  14. #include "domstubs.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsISelection; /* forward declaration */
  22.  
  23. class nsIEditor; /* forward declaration */
  24.  
  25. class nsIEditorSpellCheck; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIInlineSpellChecker */
  29. #define NS_IINLINESPELLCHECKER_IID_STR "f5d1ec9e-4d30-11d8-8053-da0cc7df1f20"
  30.  
  31. #define NS_IINLINESPELLCHECKER_IID \
  32.   {0xf5d1ec9e, 0x4d30, 0x11d8, \
  33.     { 0x80, 0x53, 0xda, 0x0c, 0xc7, 0xdf, 0x1f, 0x20 }}
  34.  
  35. class NS_NO_VTABLE nsIInlineSpellChecker : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IINLINESPELLCHECKER_IID)
  39.  
  40.   /* readonly attribute nsIEditorSpellCheck spellChecker; */
  41.   NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) = 0;
  42.  
  43.   /* [noscript] void init (in nsIEditor aEditor); */
  44.   NS_IMETHOD Init(nsIEditor *aEditor) = 0;
  45.  
  46.   /* [noscript] void cleanup (); */
  47.   NS_IMETHOD Cleanup(void) = 0;
  48.  
  49.   /* attribute boolean enableRealTimeSpell; */
  50.   NS_IMETHOD GetEnableRealTimeSpell(PRBool *aEnableRealTimeSpell) = 0;
  51.   NS_IMETHOD SetEnableRealTimeSpell(PRBool aEnableRealTimeSpell) = 0;
  52.  
  53.   /* void spellCheckAfterEditorChange (in long aAction, in nsISelection aSelection, in nsIDOMNode aPreviousSelectedNode, in long aPreviousSelectedOffset, in nsIDOMNode aStartNode, in long aStartOffset, in nsIDOMNode aEndNode, in long aEndOffset); */
  54.   NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) = 0;
  55.  
  56.   /* void spellCheckRange (in nsIDOMRange aSelection); */
  57.   NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) = 0;
  58.  
  59.   /* nsIDOMRange getMispelledWord (in nsIDOMNode aNode, in long aOffset); */
  60.   NS_IMETHOD GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange **_retval) = 0;
  61.  
  62.   /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
  63.   NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) = 0;
  64.  
  65.   /* void addWordToDictionary (in AString aWord); */
  66.   NS_IMETHOD AddWordToDictionary(const nsAString & aWord) = 0;
  67.  
  68.   /* void ignoreWord (in AString aWord); */
  69.   NS_IMETHOD IgnoreWord(const nsAString & aWord) = 0;
  70.  
  71.   /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
  72.   NS_IMETHOD IgnoreWords(const PRUnichar **aWordsToIgnore, PRUint32 aCount) = 0;
  73.  
  74. };
  75.  
  76. /* Use this macro when declaring classes that implement this interface. */
  77. #define NS_DECL_NSIINLINESPELLCHECKER \
  78.   NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker); \
  79.   NS_IMETHOD Init(nsIEditor *aEditor); \
  80.   NS_IMETHOD Cleanup(void); \
  81.   NS_IMETHOD GetEnableRealTimeSpell(PRBool *aEnableRealTimeSpell); \
  82.   NS_IMETHOD SetEnableRealTimeSpell(PRBool aEnableRealTimeSpell); \
  83.   NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset); \
  84.   NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection); \
  85.   NS_IMETHOD GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange **_retval); \
  86.   NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword); \
  87.   NS_IMETHOD AddWordToDictionary(const nsAString & aWord); \
  88.   NS_IMETHOD IgnoreWord(const nsAString & aWord); \
  89.   NS_IMETHOD IgnoreWords(const PRUnichar **aWordsToIgnore, PRUint32 aCount); 
  90.  
  91. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  92. #define NS_FORWARD_NSIINLINESPELLCHECKER(_to) \
  93.   NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) { return _to GetSpellChecker(aSpellChecker); } \
  94.   NS_IMETHOD Init(nsIEditor *aEditor) { return _to Init(aEditor); } \
  95.   NS_IMETHOD Cleanup(void) { return _to Cleanup(); } \
  96.   NS_IMETHOD GetEnableRealTimeSpell(PRBool *aEnableRealTimeSpell) { return _to GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
  97.   NS_IMETHOD SetEnableRealTimeSpell(PRBool aEnableRealTimeSpell) { return _to SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
  98.   NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) { return _to SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
  99.   NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) { return _to SpellCheckRange(aSelection); } \
  100.   NS_IMETHOD GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange **_retval) { return _to GetMispelledWord(aNode, aOffset, _retval); } \
  101.   NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) { return _to ReplaceWord(aNode, aOffset, aNewword); } \
  102.   NS_IMETHOD AddWordToDictionary(const nsAString & aWord) { return _to AddWordToDictionary(aWord); } \
  103.   NS_IMETHOD IgnoreWord(const nsAString & aWord) { return _to IgnoreWord(aWord); } \
  104.   NS_IMETHOD IgnoreWords(const PRUnichar **aWordsToIgnore, PRUint32 aCount) { return _to IgnoreWords(aWordsToIgnore, aCount); } 
  105.  
  106. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  107. #define NS_FORWARD_SAFE_NSIINLINESPELLCHECKER(_to) \
  108.   NS_IMETHOD GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpellChecker(aSpellChecker); } \
  109.   NS_IMETHOD Init(nsIEditor *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aEditor); } \
  110.   NS_IMETHOD Cleanup(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Cleanup(); } \
  111.   NS_IMETHOD GetEnableRealTimeSpell(PRBool *aEnableRealTimeSpell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableRealTimeSpell(aEnableRealTimeSpell); } \
  112.   NS_IMETHOD SetEnableRealTimeSpell(PRBool aEnableRealTimeSpell) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableRealTimeSpell(aEnableRealTimeSpell); } \
  113.   NS_IMETHOD SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckAfterEditorChange(aAction, aSelection, aPreviousSelectedNode, aPreviousSelectedOffset, aStartNode, aStartOffset, aEndNode, aEndOffset); } \
  114.   NS_IMETHOD SpellCheckRange(nsIDOMRange *aSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpellCheckRange(aSelection); } \
  115.   NS_IMETHOD GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMispelledWord(aNode, aOffset, _retval); } \
  116.   NS_IMETHOD ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceWord(aNode, aOffset, aNewword); } \
  117.   NS_IMETHOD AddWordToDictionary(const nsAString & aWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWordToDictionary(aWord); } \
  118.   NS_IMETHOD IgnoreWord(const nsAString & aWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWord(aWord); } \
  119.   NS_IMETHOD IgnoreWords(const PRUnichar **aWordsToIgnore, PRUint32 aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->IgnoreWords(aWordsToIgnore, aCount); } 
  120.  
  121. #if 0
  122. /* Use the code below as a template for the implementation class for this interface. */
  123.  
  124. /* Header file */
  125. class nsInlineSpellChecker : public nsIInlineSpellChecker
  126. {
  127. public:
  128.   NS_DECL_ISUPPORTS
  129.   NS_DECL_NSIINLINESPELLCHECKER
  130.  
  131.   nsInlineSpellChecker();
  132.  
  133. private:
  134.   ~nsInlineSpellChecker();
  135.  
  136. protected:
  137.   /* additional members */
  138. };
  139.  
  140. /* Implementation file */
  141. NS_IMPL_ISUPPORTS1(nsInlineSpellChecker, nsIInlineSpellChecker)
  142.  
  143. nsInlineSpellChecker::nsInlineSpellChecker()
  144. {
  145.   /* member initializers and constructor code */
  146. }
  147.  
  148. nsInlineSpellChecker::~nsInlineSpellChecker()
  149. {
  150.   /* destructor code */
  151. }
  152.  
  153. /* readonly attribute nsIEditorSpellCheck spellChecker; */
  154. NS_IMETHODIMP nsInlineSpellChecker::GetSpellChecker(nsIEditorSpellCheck * *aSpellChecker)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* [noscript] void init (in nsIEditor aEditor); */
  160. NS_IMETHODIMP nsInlineSpellChecker::Init(nsIEditor *aEditor)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* [noscript] void cleanup (); */
  166. NS_IMETHODIMP nsInlineSpellChecker::Cleanup()
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* attribute boolean enableRealTimeSpell; */
  172. NS_IMETHODIMP nsInlineSpellChecker::GetEnableRealTimeSpell(PRBool *aEnableRealTimeSpell)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176. NS_IMETHODIMP nsInlineSpellChecker::SetEnableRealTimeSpell(PRBool aEnableRealTimeSpell)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* void spellCheckAfterEditorChange (in long aAction, in nsISelection aSelection, in nsIDOMNode aPreviousSelectedNode, in long aPreviousSelectedOffset, in nsIDOMNode aStartNode, in long aStartOffset, in nsIDOMNode aEndNode, in long aEndOffset); */
  182. NS_IMETHODIMP nsInlineSpellChecker::SpellCheckAfterEditorChange(PRInt32 aAction, nsISelection *aSelection, nsIDOMNode *aPreviousSelectedNode, PRInt32 aPreviousSelectedOffset, nsIDOMNode *aStartNode, PRInt32 aStartOffset, nsIDOMNode *aEndNode, PRInt32 aEndOffset)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* void spellCheckRange (in nsIDOMRange aSelection); */
  188. NS_IMETHODIMP nsInlineSpellChecker::SpellCheckRange(nsIDOMRange *aSelection)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* nsIDOMRange getMispelledWord (in nsIDOMNode aNode, in long aOffset); */
  194. NS_IMETHODIMP nsInlineSpellChecker::GetMispelledWord(nsIDOMNode *aNode, PRInt32 aOffset, nsIDOMRange **_retval)
  195. {
  196.     return NS_ERROR_NOT_IMPLEMENTED;
  197. }
  198.  
  199. /* void replaceWord (in nsIDOMNode aNode, in long aOffset, in AString aNewword); */
  200. NS_IMETHODIMP nsInlineSpellChecker::ReplaceWord(nsIDOMNode *aNode, PRInt32 aOffset, const nsAString & aNewword)
  201. {
  202.     return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204.  
  205. /* void addWordToDictionary (in AString aWord); */
  206. NS_IMETHODIMP nsInlineSpellChecker::AddWordToDictionary(const nsAString & aWord)
  207. {
  208.     return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210.  
  211. /* void ignoreWord (in AString aWord); */
  212. NS_IMETHODIMP nsInlineSpellChecker::IgnoreWord(const nsAString & aWord)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216.  
  217. /* void ignoreWords ([array, size_is (aCount)] in wstring aWordsToIgnore, in unsigned long aCount); */
  218. NS_IMETHODIMP nsInlineSpellChecker::IgnoreWords(const PRUnichar **aWordsToIgnore, PRUint32 aCount)
  219. {
  220.     return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222.  
  223. /* End of implementation class template. */
  224. #endif
  225.  
  226. #define MOZ_INLINESPELLCHECKER_CONTRACTID "@mozilla.org/spellchecker-inline;1"
  227.  
  228. #endif /* __gen_nsIInlineSpellChecker_h__ */
  229.